<!-- head头部 -->
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <slot></slot>
    <style is:global>
      /* 定义滚动条样式 */
      ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        background-color: rgba(0, 0, 0, 1);
      }
    
      /*定义滚动条轨道 内阴影+圆角*/
      ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 0px rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.5);
      }
    
      /*定义滑块 内阴影+圆角*/
      ::-webkit-scrollbar-thumb {
        border-radius: 10px;
        box-shadow: inset 0 0 0px rgba(0, 0, 0, 0.5);
        background-color: rgba(177, 112, 92, 0.5);
        cursor: pointer;
      }
    </style>
    <script is:inline>
  // 立即执行的初始化脚本
  (function() {
    const savedTheme = localStorage.getItem('color-theme');
    const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
    const shouldDark = savedTheme === 'dark' || (!savedTheme && systemDark);
    if (shouldDark) {
      document.documentElement.classList.add('dark');
    }
  })();
</script>
    <script src="/nice/static/js/graceUtils.js" is:inline></script>
</head>